package com.btpn.custody.dao;

import java.io.Serializable;
import java.util.List;

import com.btpn.custody.entity.Branch;

public interface IBranch {
	/* =================================================== B A S I C ==================================================== */
	Branch get(Long id);

	List<Branch> findAll();
	
	Integer getCount();
	
	Serializable create(Branch branch);
	
	void createOrUpdate(Branch branch);
	
	void update(Branch branch);
	
	void delete(Long id);
	
	/* =================================================== C U S T O M ================================================== */
	Branch getByCode(String branchCode);
	
	Branch getByName(String branchName);
	
	List<Branch> findNotById(Long id, Long from, Long to);
	
	List<Branch> findByAreaId(Long areaId);
	
//	List<Branch> findByCriteria(DetachedCriteria dc, Integer from, Integer size);
}
